#pragma once
#include "Collision.h"
#include "GraphicalEntity.h"
#include "PhysicsObjects.h"

class Planet : public BaseMeshEntity
{
private:
	D3DXVECTOR3 Scale;
	D3DXVECTOR3 Angles;
	D3DXVECTOR3 AngularVelocity;

public:
	CollisionSphere MainSphere;

	Planet( void );
	Planet(IDirect3DDevice9 *nDevice, D3DXVECTOR3 nPosition, D3DXVECTOR3 nScale, D3DXVECTOR3 RotationSpeed);
	~Planet( void );

	void SetCollisionSphere(float nRadius);

	virtual void Update(float dt);

	void SetScale( D3DXVECTOR3 nScale );
	void SetAngles( D3DXVECTOR3 nAngles);
	void SetAngularVelocity( D3DXVECTOR3 nAngularVelocity);

	D3DXVECTOR3 GetScale( void );
	D3DXVECTOR3 GetAngles( void );
	D3DXVECTOR3 GetAngularVelocity( void );

};